﻿#include "CPolItemCamer.h"

CPolItemCamer::CPolItemCamer()
{
	m_nCheckType = 0;
	m_nCollectIndex = 0;
	m_nTackPicture = 0;
	m_nDataType = 0;
	m_dAngelIR = 0;
	m_dAngelCamer = 0;
	m_dCollectTime = 0;
	m_sUrlPath ="";
	m_nIsActTrip = 0;
	m_nDevType = 1;
	m_dCollectInterval = 0.0;
	m_dRollerOffdetDis = 0.1;
	m_nIsExecAI = 0;
	m_nIsShowPdf = 1;//默认需要保存在Pdf中
}

CPolItemCamer::~CPolItemCamer()
{
}

void CPolItemCamer::copyData(CPolItem *pPollingItemBase)
{
	if (nullptr == pPollingItemBase)
	{
		return;
	}
		

	CPolItemCamer* pPolItemCamer = (CPolItemCamer*)pPollingItemBase;

	//将基类中的数据进行拷贝
	pPolItemCamer->m_sItemGuid = m_sItemGuid;
	pPolItemCamer->m_sItemName = m_sItemName;
	pPolItemCamer->m_sPointGuid = m_sPointGuid;
	pPolItemCamer->m_sGuid = m_sGuid;
	pPolItemCamer->m_nDevType = m_nDevType;
	pPolItemCamer->m_nDevTypeCode = m_nDevTypeCode;
	pPolItemCamer->m_nDataType = m_nDataType;
	pPolItemCamer->m_dItemZ = m_dItemZ;
	pPolItemCamer->m_nIndex = m_nIndex;
	pPolItemCamer->m_nAlarmLevel = m_nAlarmLevel;
	pPolItemCamer->m_sDataThreadHoldHH = m_sDataThreadHoldHH;
	pPolItemCamer->m_sDataThreadHoldLL = m_sDataThreadHoldLL;
	pPolItemCamer->m_sDataThreadHoldH = m_sDataThreadHoldH;
	pPolItemCamer->m_sDataThreadHoldL = m_sDataThreadHoldL;
	pPolItemCamer->m_nItemStatus = m_nItemStatus;
	pPolItemCamer->m_nBelong = m_nBelong;
	pPolItemCamer->m_nCheckType = m_nCheckType;
	pPolItemCamer->m_nCollectIndex = m_nCollectIndex;
	pPolItemCamer->m_nCollectCheckType = m_nCollectCheckType;
	pPolItemCamer->m_dCollectInterval = m_dCollectInterval;
	pPolItemCamer->m_nCollectRollerNum = m_nCollectRollerNum;
	
	
	//拷贝云台巡检项数据
	pPolItemCamer->m_nTackPicture = m_nTackPicture;
	pPolItemCamer->m_dAngelIR = m_dAngelIR;
	pPolItemCamer->m_dAngelCamer = m_dAngelCamer;
	pPolItemCamer->m_dCollectTime = m_dCollectTime;
	pPolItemCamer->m_sUrlPath = m_sUrlPath;
	pPolItemCamer->m_nIsActTrip = m_nIsActTrip;
	pPolItemCamer->m_dRollerOffdetDis = m_dRollerOffdetDis;
	pPolItemCamer->m_nIsExecAI = m_nIsExecAI;
	pPolItemCamer->m_nIsShowPdf = m_nIsShowPdf;
}
